package com.itdaan.portal.common.util;

/**
 * HTTP请求返回类
 * @author www.itdaan.com
 */
public class ReadPage {

    /**
     * 是否超时.
     */
    private boolean isTimeOut;
    
    /**
     *  Service Unavailable 服务不可用
     */
    private boolean is503Page;
    
    /**
     * Not Found 无法找到指定位置的资源。
     */
    private boolean is404Page;
    
    /**
     * Internal Server Error 服务器遇到了意料不到的情况，不能完成客户的请求。 
     */
    private boolean is500Page;

    /**
     * 是否出错
     */
    private boolean isError;
    
    /**
     * 爬取数据.
     */
    private Object obj;
    
    /**
     * 错误信息
     */
    private String errorMessage;

    public ReadPage() {

        isTimeOut = false;
    }

    public Object getObj() {

        return obj;
    }

    public void setObj(Object obj) {

        this.obj = obj;
    }

    public boolean isTimeOut() {

        return isTimeOut;
    }

    public void setTimeOut(boolean isTimeOut) {

        this.isTimeOut = isTimeOut;
    }

	public boolean isIs503Page() {
		return is503Page;
	}

	public void setIs503Page(boolean is503Page) {
		this.is503Page = is503Page;
	}

	public boolean isIs404Page() {
		return is404Page;
	}

	public void setIs404Page(boolean is404Page) {
		this.is404Page = is404Page;
	}

	public boolean isIs500Page() {
		return is500Page;
	}

	public void setIs500Page(boolean is500Page) {
		this.is500Page = is500Page;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public boolean isError() {
		return isError;
	}

	public void setError(boolean isError) {
		this.isError = isError;
	}

}